.class public Lcom/TwinBlade/PicturePassword/Utilities;
.super Landroid/app/Application;
.source "SourceFile"


# annotations
.annotation runtime Lorg/acra/a/a;
    i = ""
    j = "https://wintersacrareporter.appspot.com/acrareport"
    k = "kevdliu"
    l = "ArchAng3L"
.end annotation


# static fields
.field public static a:Z

.field public static b:I

.field public static c:Landroid/content/Context;

.field public static d:Lcom/TwinBlade/PicturePassword/bl;

.field public static e:Lcom/TwinBlade/PicturePassword/ak;

.field private static f:Landroid/widget/Toast;

.field private static g:I

.field private static h:I

.field private static i:I

.field private static j:Landroid/content/SharedPreferences;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 35
    const/4 v0, 0x1

    sput-boolean v0, Lcom/TwinBlade/PicturePassword/Utilities;->a:Z

    .line 38
    sput v1, Lcom/TwinBlade/PicturePassword/Utilities;->g:I

    .line 39
    sput v1, Lcom/TwinBlade/PicturePassword/Utilities;->h:I

    .line 40
    sput v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    .line 48
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 33
    invoke-direct {p0}, Landroid/app/Application;-><init>()V

    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .locals 1
    .parameter

    .prologue
    .line 134
    const-string v0, "notification"

    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    .line 135
    invoke-virtual {v0}, Landroid/app/NotificationManager;->cancelAll()V

    .line 136
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 328
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 329
    const-string v1, "Message"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 330
    invoke-virtual {v0, p1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 331
    const v1, 0x7f090024

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 332
    new-instance v2, Lcom/TwinBlade/PicturePassword/db;

    invoke-direct {v2}, Lcom/TwinBlade/PicturePassword/db;-><init>()V

    .line 331
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 337
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 338
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 339
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;IZ)V
    .locals 10
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/16 v6, 0xff

    const/4 v5, 0x1

    const/4 v9, 0x3

    const/4 v8, 0x4

    .line 66
    if-eqz p3, :cond_8

    .line 67
    new-instance v0, Landroid/widget/TextView;

    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 68
    const/16 v1, 0xc8

    const/16 v2, 0x39

    const/16 v3, 0x92

    const/16 v4, 0xb5

    invoke-static {v1, v2, v3, v4}, Landroid/graphics/Color;->argb(IIII)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundColor(I)V

    .line 69
    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setGravity(I)V

    .line 70
    const/high16 v1, 0x41b8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextSize(F)V

    .line 71
    invoke-static {v6, v6, v6}, Landroid/graphics/Color;->rgb(III)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 72
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "   "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "   "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 75
    if-ne p2, v8, :cond_1

    .line 76
    :try_start_0
    new-instance v1, Landroid/widget/Toast;

    invoke-direct {v1, p0}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    .line 91
    :cond_0
    :goto_0
    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    invoke-virtual {v1, v0}, Landroid/widget/Toast;->setView(Landroid/view/View;)V

    .line 92
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    const/16 v1, 0x50

    const/4 v2, 0x0

    const/16 v3, 0x19

    invoke-virtual {v0, v1, v2, v3}, Landroid/widget/Toast;->setGravity(III)V

    .line 93
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 95
    sput p2, Lcom/TwinBlade/PicturePassword/Utilities;->g:I

    .line 131
    :goto_1
    return-void

    .line 77
    :cond_1
    const/4 v1, 0x2

    if-ne p2, v1, :cond_3

    .line 78
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->g:I

    if-eq v1, v8, :cond_2

    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    if-nez v1, :cond_0

    .line 79
    :cond_2
    new-instance v1, Landroid/widget/Toast;

    invoke-direct {v1, p0}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    goto :goto_0

    .line 96
    :catch_0
    move-exception v0

    goto :goto_1

    .line 81
    :cond_3
    if-eq p2, v5, :cond_4

    if-ne p2, v9, :cond_6

    .line 82
    :cond_4
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->g:I

    if-eq v1, v8, :cond_5

    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->g:I

    if-eq v1, v9, :cond_5

    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    if-nez v1, :cond_0

    .line 83
    :cond_5
    new-instance v1, Landroid/widget/Toast;

    invoke-direct {v1, p0}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    goto :goto_0

    .line 85
    :cond_6
    if-nez p2, :cond_0

    .line 86
    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;

    if-eqz v1, :cond_7

    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->g:I

    if-eqz v1, :cond_0

    .line 87
    :cond_7
    new-instance v1, Landroid/widget/Toast;

    invoke-direct {v1, p0}, Landroid/widget/Toast;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->f:Landroid/widget/Toast;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 99
    :cond_8
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v1, "AccessDeniedToasts"

    invoke-interface {v0, v1, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    .line 100
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v2, "HintToasts"

    invoke-interface {v0, v2, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    .line 102
    :try_start_1
    new-instance v0, Landroid/content/Intent;

    const-string v3, ""

    invoke-direct {v0, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 103
    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-static {p0, v3, v0, v4}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    .line 104
    const-string v0, "notification"

    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    .line 105
    new-instance v4, Landroid/app/Notification;

    const v5, 0x7f020006

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    invoke-direct {v4, v5, p1, v6, v7}, Landroid/app/Notification;-><init>(ILjava/lang/CharSequence;J)V

    .line 106
    const-string v5, ""

    invoke-virtual {v4, p0, p1, v5, v3}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    .line 107
    iput-object p1, v4, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence;

    .line 108
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    iput-wide v5, v4, Landroid/app/Notification;->when:J

    .line 110
    const/4 v3, 0x2

    if-ne p2, v3, :cond_c

    if-eqz v1, :cond_c

    .line 111
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->h:I

    if-eq v1, v8, :cond_9

    if-nez v4, :cond_a

    .line 112
    :cond_9
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    add-int/lit8 v1, v1, 0x1

    sput v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    .line 114
    :cond_a
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    invoke-virtual {v0, v1, v4}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    .line 127
    :cond_b
    :goto_2
    sput p2, Lcom/TwinBlade/PicturePassword/Utilities;->h:I

    goto/16 :goto_1

    .line 128
    :catch_1
    move-exception v0

    goto/16 :goto_1

    .line 115
    :cond_c
    if-ne p2, v9, :cond_f

    .line 116
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->h:I

    if-eq v1, v8, :cond_d

    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->h:I

    if-eq v1, v9, :cond_d

    if-nez v4, :cond_e

    .line 117
    :cond_d
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    add-int/lit8 v1, v1, 0x1

    sput v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    .line 119
    :cond_e
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    invoke-virtual {v0, v1, v4}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto :goto_2

    .line 120
    :cond_f
    if-nez p2, :cond_b

    if-eqz v2, :cond_b

    .line 121
    if-eqz v4, :cond_10

    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->h:I

    if-eqz v1, :cond_11

    .line 122
    :cond_10
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    add-int/lit8 v1, v1, 0x1

    sput v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    .line 124
    :cond_11
    sget v1, Lcom/TwinBlade/PicturePassword/Utilities;->i:I

    invoke-virtual {v0, v1, v4}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_2
.end method

.method public static a(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 247
    return-void
.end method

.method public static a()Z
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "InlinedApi"
        }
    .end annotation

    .prologue
    const/4 v0, 0x0

    .line 151
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x9

    if-ge v1, v2, :cond_1

    .line 157
    :cond_0
    :goto_0
    return v0

    .line 155
    :cond_1
    invoke-static {}, Landroid/content/res/Resources;->getSystem()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    iget v1, v1, Landroid/content/res/Configuration;->screenLayout:I

    and-int/lit8 v1, v1, 0xf

    .line 157
    const/4 v2, 0x4

    if-ne v1, v2, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method public static a(ZZ)Z
    .locals 12
    .parameter
    .parameter

    .prologue
    const/high16 v9, 0x1000

    const/4 v10, 0x4

    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 162
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v3, "BackupPin"

    const-string v4, "0000"

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 163
    if-eqz p1, :cond_2

    const-string v3, "0000"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    const-string v3, ""

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 164
    :cond_0
    new-instance v0, Landroid/content/Intent;

    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const-class v4, Lcom/TwinBlade/PicturePassword/SetupPIN;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 165
    invoke-virtual {v0, v9}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 166
    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-virtual {v3, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 167
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const v4, 0x7f0900ca

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x3

    invoke-static {v0, v3, v4, v2}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 222
    :cond_1
    :goto_0
    return v1

    .line 171
    :cond_2
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v3, "FirstGestureType"

    const-string v4, "none"

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v3, "none"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    move v0, v1

    .line 172
    :goto_1
    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v4, "SecondGestureType"

    const-string v5, "none"

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "none"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    move v3, v1

    .line 173
    :goto_2
    sget-object v4, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v5, "ThirdGestureType"

    const-string v6, "none"

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "none"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_5

    move v4, v1

    .line 174
    :goto_3
    sget-object v5, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v6, "FourthGestureType"

    const-string v7, "none"

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "none"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_6

    move v5, v1

    .line 175
    :goto_4
    sget-object v6, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v7, "FifthGestureType"

    const-string v8, "none"

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "none"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_7

    move v6, v1

    .line 177
    :goto_5
    if-nez v0, :cond_9

    if-nez v3, :cond_9

    if-nez v4, :cond_9

    if-nez v5, :cond_9

    if-nez v6, :cond_9

    .line 179
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 180
    new-instance v0, Landroid/content/Intent;

    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const-class v4, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 184
    :goto_6
    invoke-virtual {v0, v9}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 185
    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-virtual {v3, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 186
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const v4, 0x7f0900c7

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v3, v10, v2}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    goto/16 :goto_0

    :cond_3
    move v0, v2

    .line 171
    goto :goto_1

    :cond_4
    move v3, v2

    .line 172
    goto :goto_2

    :cond_5
    move v4, v2

    .line 173
    goto :goto_3

    :cond_6
    move v5, v2

    .line 174
    goto :goto_4

    :cond_7
    move v6, v2

    .line 175
    goto :goto_5

    .line 182
    :cond_8
    new-instance v0, Landroid/content/Intent;

    sget-object v3, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const-class v4, Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_6

    .line 190
    :cond_9
    if-eqz p0, :cond_10

    .line 191
    if-eqz v0, :cond_a

    .line 192
    sget-object v7, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v8, "FirstGestureData"

    const-string v9, "0"

    invoke-interface {v7, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_a

    move v0, v1

    .line 196
    :cond_a
    if-eqz v3, :cond_b

    .line 197
    sget-object v7, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v8, "SecondGestureData"

    const-string v9, "0"

    invoke-interface {v7, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_b

    move v3, v1

    .line 201
    :cond_b
    if-eqz v4, :cond_c

    .line 202
    sget-object v7, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v8, "ThirdGestureData"

    const-string v9, "0"

    invoke-interface {v7, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_c

    move v4, v1

    .line 206
    :cond_c
    if-eqz v5, :cond_d

    .line 207
    sget-object v7, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v8, "FourthGestureData"

    const-string v9, "0"

    invoke-interface {v7, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_d

    move v5, v1

    .line 211
    :cond_d
    if-eqz v6, :cond_10

    .line 212
    sget-object v7, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v8, "FifthGestureData"

    const-string v9, "0"

    invoke-interface {v7, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_10

    move v6, v0

    move v0, v1

    .line 218
    :goto_7
    if-nez v6, :cond_e

    if-nez v3, :cond_e

    if-nez v4, :cond_e

    if-nez v5, :cond_e

    if-nez v0, :cond_e

    .line 219
    sget-object v7, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    sget-object v8, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const v9, 0x7f0900cc

    invoke-virtual {v8, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8, v10, v2}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 222
    :cond_e
    if-nez v6, :cond_f

    if-nez v3, :cond_f

    if-nez v4, :cond_f

    if-nez v5, :cond_f

    if-eqz v0, :cond_1

    :cond_f
    move v1, v2

    goto/16 :goto_0

    :cond_10
    move v11, v6

    move v6, v0

    move v0, v11

    goto :goto_7
.end method

.method public static b()V
    .locals 3

    .prologue
    .line 226
    new-instance v0, Landroid/content/Intent;

    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    const-class v2, Lcom/TwinBlade/PicturePassword/LockActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 227
    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 228
    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 229
    return-void
.end method

.method public static b(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 140
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 141
    const-string v1, "HapticFeedback"

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    .line 143
    if-eqz v0, :cond_0

    .line 144
    const-string v0, "vibrator"

    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/Vibrator;

    .line 145
    const-wide/16 v1, 0x4b

    invoke-virtual {v0, v1, v2}, Landroid/os/Vibrator;->vibrate(J)V

    .line 147
    :cond_0
    return-void
.end method

.method public static c(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 250
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 251
    const v1, 0x7f090023

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 252
    const v1, 0x7f09001b

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 253
    const v1, 0x7f090024

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 254
    new-instance v2, Lcom/TwinBlade/PicturePassword/cv;

    invoke-direct {v2, p0}, Lcom/TwinBlade/PicturePassword/cv;-><init>(Landroid/content/Context;)V

    .line 253
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 259
    const v1, 0x7f090025

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 260
    new-instance v2, Lcom/TwinBlade/PicturePassword/cw;

    invoke-direct {v2}, Lcom/TwinBlade/PicturePassword/cw;-><init>()V

    .line 259
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 265
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 266
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 267
    return-void
.end method

.method public static d(Landroid/content/Context;)V
    .locals 4
    .parameter

    .prologue
    .line 302
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 303
    const-string v1, "PayPal Serial Key"

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 304
    sget-object v1, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    const-string v2, "PayPalKey"

    const-string v3, "-1"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 305
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Your Serial Key: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 306
    const-string v2, "Copy to Clipboard"

    .line 307
    new-instance v3, Lcom/TwinBlade/PicturePassword/cz;

    invoke-direct {v3, p0, v1}, Lcom/TwinBlade/PicturePassword/cz;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 306
    invoke-virtual {v0, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 313
    const-string v1, "OK"

    .line 314
    new-instance v2, Lcom/TwinBlade/PicturePassword/da;

    invoke-direct {v2}, Lcom/TwinBlade/PicturePassword/da;-><init>()V

    .line 313
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 319
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 320
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 321
    return-void
.end method

.method public static e(Landroid/content/Context;)V
    .locals 2
    .parameter

    .prologue
    .line 324
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.TwinBlade.PicturePassword.LVL_STATUS"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 325
    return-void
.end method

.method static synthetic f(Landroid/content/Context;)V
    .locals 0
    .parameter

    .prologue
    .line 269
    invoke-static {p0}, Lcom/TwinBlade/PicturePassword/Utilities;->g(Landroid/content/Context;)V

    return-void
.end method

.method private static g(Landroid/content/Context;)V
    .locals 3
    .parameter

    .prologue
    .line 270
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 271
    const v1, 0x7f09001f

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 272
    const v1, 0x7f090020

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 273
    const v1, 0x7f090021

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 274
    new-instance v2, Lcom/TwinBlade/PicturePassword/cx;

    invoke-direct {v2, p0}, Lcom/TwinBlade/PicturePassword/cx;-><init>(Landroid/content/Context;)V

    .line 273
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 290
    const v1, 0x7f090022

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 291
    new-instance v2, Lcom/TwinBlade/PicturePassword/cy;

    invoke-direct {v2, p0}, Lcom/TwinBlade/PicturePassword/cy;-><init>(Landroid/content/Context;)V

    .line 290
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 297
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 298
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 299
    return-void
.end method


# virtual methods
.method public onCreate()V
    .locals 2

    .prologue
    .line 52
    invoke-super {p0}, Landroid/app/Application;->onCreate()V

    .line 54
    :try_start_0
    invoke-static {p0}, Lorg/acra/ACRA;->init(Landroid/app/Application;)V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    .line 58
    :goto_0
    sput-object p0, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    .line 59
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    sput-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->j:Landroid/content/SharedPreferences;

    .line 60
    const/high16 v0, 0x41c8

    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Utilities;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    iget v1, v1, Landroid/util/DisplayMetrics;->density:F

    mul-float/2addr v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v0

    double-to-int v0, v0

    sput v0, Lcom/TwinBlade/PicturePassword/Utilities;->b:I

    .line 62
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->e(Landroid/content/Context;)V

    .line 63
    return-void

    .line 55
    :catch_0
    move-exception v0

    goto :goto_0
.end method
